import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class project extends MIDlet implements CommandListener{

private Command exitCommand;//exit command
private Display display; // The display for this MIDlet
private Alert alert;

    public project()
    {
        display = Display.getDisplay(this);
		
        exitCommand = new Command("Exit", Command. EXIT,2);
	
    }
	
    
    public void startApp()
    {
        
		TextBox t = new TextBox("Hello", "Welcome to 10 Questions!", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        display.setCurrent(t);
    }
    
    public void pauseApp()
    {
    }
    
    public void destroyApp(boolean unconditional)
    {
    }
    
    public void commandAction(Command c, Displayable s)
    {
    
        if (c == exitCommand)
        {
            notifyDestroyed();
        }
    }
}